package cn.wolfcode.mapper;

import cn.wolfcode.domain.RolePermission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RolePermissionMapper {
    int insert(RolePermission record);

    List<RolePermission> selectAll();

    void deleteByRoleId(Long id);

    void deleteByPermissionId(Long id);
}